package com.isdepci.project.result.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.result.mapper.TwoActivityMapper;
import com.isdepci.project.result.domain.TwoActivity;
import com.isdepci.project.result.service.ITwoActivityService;

/**
 * 范围2分类(按照活动类型划分）Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-05
 */
@Service
public class TwoActivityServiceImpl implements ITwoActivityService
{
    @Autowired
    private TwoActivityMapper twoActivityMapper;

    /**
     * 查询范围2分类(按照活动类型划分）
     */
    @Override
    public TwoActivity selectTwoActivityById(Long id)
    {
        return twoActivityMapper.selectTwoActivityById(id);
    }

    /**
     * 查询范围2分类(按照活动类型划分）列表
     */
    @Override
    public List<TwoActivity> selectTwoActivityList(TwoActivity twoActivity)
    {
        return twoActivityMapper.selectTwoActivityList(twoActivity);
    }

    /**
     * 新增范围2分类(按照活动类型划分）
     */
    @Override
    public int insertTwoActivity(TwoActivity twoActivity)
    {
        return twoActivityMapper.insertTwoActivity(twoActivity);
    }

    /**
     * 修改范围2分类(按照活动类型划分）
     */
    @Override
    public int updateTwoActivity(TwoActivity twoActivity)
    {
        return twoActivityMapper.updateTwoActivity(twoActivity);
    }

    /**
     * 批量删除范围2分类(按照活动类型划分）
     */
    @Override
    public int deleteTwoActivityByIds(Long[] ids)
    {
        return twoActivityMapper.deleteTwoActivityByIds(ids);
    }

    /**
     * 删除范围2分类(按照活动类型划分）信息
     */
    @Override
    public int deleteTwoActivityById(Long id)
    {
        return twoActivityMapper.deleteTwoActivityById(id);
    }
}
